﻿using System.Collections.Generic;

namespace Sidvall.UI.Views
{
	public class Region
	{
		public const string RegionNameParameter = "RegionName";

		public string Name { get; set; }
		public IRegionManager RegionManager { get; set; }

		#region GetRegionName

		public static string GetRegionName(IDictionary<string, string> index)
		{
			if (index == null)
				return null;
			if (!index.ContainsKey(RegionNameParameter))
				return null;
			return index[RegionNameParameter];
		}

		#endregion
	}
}
